<?php

namespace PinWuYunTests\Base;

require_once(__DIR__ . '/../../vendor/autoload.php');

use PHPUnit\Framework\TestCase;
use Slim\App;
use YouzanCloudBoot\Boot\Bootstrap;
use YouzanCloudBoot\Facades\Facade;


class BaseTestCase extends TestCase
{

    protected $app;


    public function getApp()
    {
        return $this->app;
    }


    public function setUp()
    {
        $container = Bootstrap::setupContainer();

        $app = new App($container);

        Bootstrap::setupApp($app);

        Facade::setFacadeApplication($app);

        $this->app = $app;
    }

}